﻿@using System.Linq
@using Kevin.Shop.Business.Service.Entity.Helper
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>@ViewBag.Title @WebClientContext.Current.SiteName</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <!-- 引用本地js库文件开始-->
    <script type="text/javascript" src="~/Utility/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="~/Utility/jquery.mobile-1.3.2.min.js"></script>
    <link href="~/Themes/Health/Style/commom/jquery.mobile.structure-1.3.2.min.css" rel="stylesheet" media="all" ice:classes="*" />

    <link href="~/Themes/Default/Style/commom/base.css?v=1" rel="stylesheet" type="text/css" media="all" ice:classes="*" />
    <link href="~/Themes/Default/Style/@WebClientContext.Current.SiteColor/site_ext.css" rel="stylesheet" media="all" ice:classes="*" />
    @*<link href="~/Themes/green/site_ext.css" rel="stylesheet" media="all" ice:classes="*" />*@

    @RenderSection("header", required: false)
    @* Nouse now
         @Styles.Render("~/Content/css")
         @Scripts.Render("~/bundles/modernizr")
        *@

</head>
<body>
    <div id="body" data-role="page">
        <div id="pageContent">
            <header id="pageheader">
                <!-- BeginHeader -->
                <div id="header" data-role="header" role="banner" data-position="fixed">
                    @*  @if (ViewContext.RouteData.Values["controller"].ToString().ToLower() != "home")
                    {  
                        <span class="HeaderIcon">
                            <a href="#" id="btnBack" data-iconpos="notext"
                                data-inline="true" data-rel="back" class="mod_btn">
                                <div class="icon-arrow-left fs1"></div>

                            </a>
                        </span>
                    }
                    else
                    {
                        <span id="HeaderIcon">
                            <a href="~/Home" class="mod_btn">
                                <div class="icon-home fs1"></div>
                            </a>
                        </span>
                    }
                    <span class="HeaderIcon">
                        <a href="#" id="btnMenupanel" class="mod_btn">
                            <div id="gn_menubtn" class="icon-menu fs1"></div>
                        </a>
                    </span>
                    <span class="HeaderIcon">
                        <a href="~/MyAccount/Home" class="mod_btn">
                            <div class="icon-user fs1" id="headeraccount"></div>
                        </a>
                    </span>
                    <span class="HeaderIcon">
                        <a href="~/Purchase/ShoppingCart" class="mod_btn">
                            <div id="headershoppingcart"></div>
                            <div class="icon-cart fs1"></div>
                        </a>
                    </span>*@


                    <ul class="fl">
                        <li class="HeaderIcon">
                            @if (ViewContext.RouteData.Values["controller"].ToString().ToLower() != "home")
                            {  
                                <a href="#" id="btnBack" data-iconpos="notext"
                                   data-inline="true" data-rel="back" class="mod_btn">
                                    <div class="icon-arrow-left fs1"></div>

                                </a>
                            }
                            else
                            {
                                <a href="~/Home" class="mod_btn">
                                    <div class="icon-home fs1"></div>
                                </a>
                            }
                        </li>
                        <li class="HeaderIcon">
                            <a href="~/MyAccount/Home" class="mod_btn">
                                <div class="icon-user fs1" id="headeraccount"></div>
                            </a>
                        </li>
                        <li class="HeaderIcon">
                            <a href="~/Purchase/ShoppingCart" class="mod_btn">
                                <span id="headershoppingcart"></span>
                                <div class="icon-cart fs1"></div>
                            </a>
                        </li>
                        <li class="HeaderIcon">
                            <a href="#" id="btnMenupanel" class="mod_btn">
                                <div id="gn_menubtn" class="icon-menu fs1"></div>
                            </a>
                        </li>
                    </ul>
                </div>
                @RenderSection("topheader", required: false)
                <!-- InstanceEndEditable -->
                <!-- EndHeader -->
            </header>
            <div data-role="content" role="main">
                <!-- InstanceBeginEditable name="Body" -->
                @RenderBody()
                <!-- InstanceEndEditable -->
            </div>
        </div>
        <!-- /page -->
        <div data-role="popup" id="kevinshop_pop_Msg" class="ui-content"
             data-position-to="window"
             data-transition="flow"
             style="max-width: 300px;">
            <div id="kevinshop_pop_Msg_Text" class="p10"></div>
        </div>
        @RenderSection("footer", required: false)


        <!-- defaultpanel -->
        <div data-role="panel" id="menupanel" data-position="right" data-display="overlay" style="display: none;max-width: 120px;" data-animate="false">
            <div class="panel-content">
                @{ Html.RenderAction("CategoryPanelPartialView", "Sort"); }
            </div>
            <!-- /content wrapper for padding -->
        </div>
        <!-- /defaultpanel -->
    </div>
    <span id="txtSitedesc" style="display: none">@WebClientContext.Current.SiteDescription</span>
    <script type="text/javascript" src="~/Utility/pages/jquery.cookie.js"></script>
    <script type="text/javascript" src="~/Utility/pages/pg_common.js" charset="gb2312"></script>
    <script type="text/javascript" src="~/Utility/pages/pg_global.js"></script>
    <script type="text/javascript" language="javascript">
        $(document).bind("mobileinit", function () {
            // 新的配置
            $.mobile.ajaxEnabled = false;
        });
        $("#btnMenupanel").click(function () {
            $("#menupanel").show();
            $("#menupanel").panel("open");
        });
        $("#menupanel").on("panelclose", function (event, ui) {
            $("#menupanel").hide();
        });
    </script>

</body>
</html>
